from xml.dom import minidom

doc = minidom.parse(r"F:\chen\pythonworkspace\PythonGithub\TestFile\model.xml")
with open (r'F:\chen\pythonworkspace\PythonGithub\TestFile\modelnew.xml', 'w') as f:
    doc.writexml(f, addindent='', newl ='', encoding='utf-8')


